home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
mac
/
Code
/
Chapter Code.exe
/
Chapter09
/
twosegments2.s3d
< prev
next >
Wrap
Text File
|
2000-11-15
|
757b
|
45 lines
DEF Box01 Transform {
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.898 0.6039 0.8431
}
}
geometry Box {
}
}
]
translation 0 0 0
}
DEF timer TimeSensor {
startTime -1
cycleInterval 10
loop TRUE
}
DEF fr FractionRemapper {
startKey 0.0
endKey 0.4
}
DEF Box01-POS-INTERP PositionInterpolator {
key [ 0, .19, .20, 1 ]
keyValue [
#horizontal
0 0 0,
5 0 0,
#vertical
0 0 0,
0 4 0 ]
}
ROUTE timer.fraction_changed TO fr.inFraction
ROUTE fr.outFraction TO Box01-POS-INTERP.set_fraction
ROUTE Box01-POS-INTERP.value_changed TO Box01.set_translation